package gclib.entities;

import java.io.Serializable;
import java.util.Map;
import javax.persistence.ElementCollection;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Id;
import javax.persistence.MapKeyEnumerated;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * This is a complete bundle of the six abilities that any toon has.
 * @author Jason
 */
@Entity
@Table(name="GC_ABILITY_SET")
public class AbilitySet implements Serializable{

    @Id
    private Integer abilitySetId;

    @OneToOne(mappedBy="abilities")
    private Character character;
    {
        //jdbc:hsqldb:E:\My Projects\Game Crafter's Backpack\GCBLibrary:gcb
//        JDBCConn
    }
//    @ElementCollection(targetClass=Ability.class)
//    @MapKeyEnumerated(EnumType.STRING)
    @Transient
    private Map<AbilityType, Ability> abilityMap;
}
